from rest_framework.viewsets import ModelViewSet

from system.serializers import Role
from system import models


class RoleView(ModelViewSet):
    queryset = models.Role.objects.all()
    serializer_class = Role.RoleSerializers
    filterset_fields = ['name']
